/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const tableRouter = {
  path: '/article',
  component: Layout,
  redirect: '/article/index',
  name: 'article',
  meta: {
    title: '文章管理',
    icon: 'table'
  },
  children: [
    {
      path: 'create',
      component: () => import('@/views/article/create'),
      name: 'article.create',
      meta: { title: '创建文章' }
    },
    {
      path: 'edit/:id(\\d+)',
      component: () => import('@/views/article/edit'),
      name: 'article.edit',
      meta: { title: '编辑文章', noCache: true, activeMenu: '/article/index' },
      hidden: true
    },
    {
      path: 'index',
      component: () => import('@/views/article/index'),
      name: 'article.index',
      meta: { title: '文章例表' }
    }
  ]
}
export default tableRouter
